{if intval($TS_USER['user']['userid']) > 0 && $TS_SITE['base']['iseditor']=='1'}
<link rel="stylesheet" type="text/css" href="{SITE_URL}public/editor/markitup/skins/simple/style.css" />
<link rel="stylesheet" type="text/css" href="{SITE_URL}public/editor/markitup/sets/bbcode/style.css" />
<script type="text/javascript" src="{SITE_URL}public/editor/markitup/jquery.markitup.js"></script>
<script type="text/javascript" src="{SITE_URL}public/editor/markitup/sets/bbcode/set.js"></script>
<script language="javascript">
$(document).ready(function()	{
    $('#bbcode').markItUp(mySettings);
});
</script>
{/if}